<?php

namespace App\Kuafu\ProductMenu\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class ProductMenuCodeEnum extends BaseCodeEnum
{
    // 菜品菜单模块
    public const ERR_FOOD_MENUS_PARAM_NAME = 407001;
    public const ERR_FOOD_MENUS_PARAM      = 407002;

    public const ERR_FOOD_MENUS_DB           = 507001;
    public const ERR_FOOD_MENUS_ID           = 507002;
    public const ERR_FOOD_MENUS_OFFLINE      = 507003;
    public const ERR_FOOD_MENUS_NAME_EXISTS  = 507004;
    public const ERR_FOOD_MENUS_DB_ADD       = 507005;
    public const ERR_FOOD_MENUS_DB_SET       = 507006;
    public const ERR_FOOD_MENUS_DB_ONLINE    = 507007;
    public const ERR_FOOD_MENUS_DB_DEL       = 507008;
    public const ERR_FOOD_MENUS_SHOP_USING   = 507009;
    public const ERR_FOOD_MENUS_NULL_OFFLINE = 507010;
    public const ERR_FOOD_MENUS_BATCH_ERROR  = 507011;

    public const CODE_TEXT = [
        self::ERR_FOOD_MENUS_PARAM_NAME   => '菜单名称必填',
        self::ERR_FOOD_MENUS_DB           => '数据库操作失败',
        self::ERR_FOOD_MENUS_PARAM        => '参数错误',
        self::ERR_FOOD_MENUS_ID           => '不存在的菜单id',
        self::ERR_FOOD_MENUS_OFFLINE      => '菜单未上架',
        self::ERR_FOOD_MENUS_NAME_EXISTS  => '该菜单名称已存在',
        self::ERR_FOOD_MENUS_DB_ADD       => '新增菜单失败',
        self::ERR_FOOD_MENUS_DB_SET       => '编辑菜单失败',
        self::ERR_FOOD_MENUS_DB_ONLINE    => '上下架菜单失败',
        self::ERR_FOOD_MENUS_DB_DEL       => '删除菜单失败',
        self::ERR_FOOD_MENUS_SHOP_USING   => '有店铺正在使用，无法删除该菜单',
        self::ERR_FOOD_MENUS_NULL_OFFLINE => '菜单不存在或已下架',
        self::ERR_FOOD_MENUS_BATCH_ERROR  => '批量下发菜品失败',
    ];
}
